package cc.customer.web;

import cc.customer.SocketIo.SocketIOService;
import cc.customer.SocketIo.projo.PushMessage;
import cc.customer.common.domain.ResponseBo;
import cc.customer.index.IndexServices;
import cc.customer.rabbit.dao.CconvRecordMapper;
import cc.customer.rabbit.domain.CconvRecord;
import cc.customer.system.domain.MyUser;
import cc.customer.web.sys.controller.base.BaseController;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * 项目首页得数据加载
 * **/
@Controller
public class IndexPageController extends BaseController {

    private  static  final Logger logger = LoggerFactory.getLogger(IndexPageController.class);

    @Autowired
    private IndexServices indexServices;


    /**头部数据统计**/
    @RequestMapping(value ="customerIndex/indexCout")
    @ResponseBody
    public ResponseBo getIndexPageCout(){
        return indexServices.getIndexNumStatis();
    }

    /**用户统计***/
    @RequestMapping(value ="customerIndex/indexCoutDetail")
    @ResponseBody
    public ResponseBo indexCoutDetail(){
        return indexServices.getIndexMintorStatis();
    }

    /**
     * 测试个人推送信息
     * **/
    /*@GetMapping(path="/send")
    @ResponseBody
    public void senderMsg(PushMessage pushMessage) {
        socketIOService.pushMessageToUser(pushMessage);
    }*/


}


